package com.wujie.market.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wujie.market.dao.UserDao;
import com.wujie.market.po.User;
import com.wujie.market.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (User)表服务实现类
 *
 * @author 
 * @since 2023-01-27 19:47:58
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;


    @Override
    public User queryPassword(String userName) {
        QueryWrapper<User> queryWrapper =new QueryWrapper<>();
        queryWrapper.eq("username",userName);
        return userDao.selectOne(queryWrapper);
    }
}
